#ifndef NORMALASTAR_H_
#define NORMALASTAR_H_

#include <windows.h>

#include "CLine.h"
#include "CPolygone.h"
#include "node.h"

#include "utils.h"



class CNormalAstar
{
public :

	CNormalAstar();
	list<CNode> opennode  ;
	list<CNode> closenode ;

	CNode GetBetterNode();
	CNode *Astar(POINT dep , POINT arr );
	bool IsInClose(POINT p);
	bool IsInOpen(POINT p);

	int terrain[800][600];

	void DoPath(POINT dep,POINT arr);
	void Draw( HDC hdc );
	void PrepareAstar(list<CPolygone> listpoly);






};


#endif